package com.xyht.sca_s.student_manage_system.modules.org.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xyht.sca_s.student_manage_system.modules.org.entity.SmsOrgStructure;
import com.xyht.sca_s.student_manage_system.modules.user.entity.SmsUser;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * <p>
 * 组织架构 Mapper 接口
 * </p>
 *
 * @author XYHT
 * @since 2022-11-27
 */
@Component(value = "SmsOrgStructureMapper")
public interface SmsOrgStructureMapper extends BaseMapper<SmsOrgStructure> {
    List<SmsUser> getUserListByOrgList(List<Integer> list,Integer flag,String search_str,Integer size,Integer offset);
    Integer getUserListByOrgListCount(List<Integer> list,Integer flag,String search_str);
    List<String> getRoleNameByUser (String user_id);
    List<String> getOrgNameByUser (String user_id);

    List<SmsOrgStructure> getAllGrades();
}
